<include file="Public/min-header" />
<div class="wrapper">
	<include file="Public/breadcrumb"/>
	<section class="content">
       <div class="row">
       		<div class="col-xs-12">
	       		<div class="box">
	             <div class="box-header">
	               	<nav class="navbar navbar-default">
				        <div class="collapse navbar-collapse">
				          <form class="navbar-form form-inline" action="{:U('Live/video_list')}/fenbu_id/{$fenbu_id}" method="get">
				            <div class="form-group">
				              	<input type="text" name="keywords" class="form-control" value="{:I('keywords')}" placeholder="请输入视频名称">
				            </div>
				            <button type="submit" class="btn btn-primary">查询</button>
							  <div class="form-group pull-right">
								  <a href="{:U('Live/video')}" class="btn btn-primary pull-right"><i class="fa fa-plus"></i> 新增视频</a>
							  </div>
				          </form>
				      	</div>
	    			</nav>
	             </div>
	             <div class="box-body">
	           	 <div class="row">
	            	<div class="col-sm-12">
		              <table id="list-table" class="table table-bordered table-striped dataTable">
		                 <thead>
		                   <tr role="row">
							   <th>id</th>
							   <th width="50">视频号id</th>
							   <th>标题</th>
							   <th>封面图片</th>
							   <th>小程序码</th>
			                   <th>是否显示</th>
			                   <th>排序</th>
			                   <th>创建时间</th>
							   <th>操作</th>
		                   </tr>
		                 </thead>
						<tbody>
                          <foreach name="list" item="vo" key="k" >
                             <tr role="row">    
							 <td>{$vo.id}</td>
							 <td>{$vo.feedid}</td>
		                     <td>{$vo.name}</td>

							 <td><img alt="" src="{$vo.share_img}" width="80px" height="50px"></td>
							 <td><img alt="" src="{$vo.qrcode}" width="100px" height="100px"></td>
		                     <td>
                                 <img width="20" height="20" src="__PUBLIC__/images/<if condition='$vo[dataflag] eq 1'>yes.png<else />cancel.png</if>" onclick="sellerChangeTableVal('video','id','{$vo.id}','dataflag',this)"/>
		                     </td>
								 <td>
									 <input type="text" onkeyup="this.value=this.value.replace(/[^\d]/g,'')" onpaste="this.value=this.value.replace(/[^\d]/g,'')" onchange="sellerUpdateSort('video','id','{$vo.id}','sort',this)" size="4" value="{$vo.sort}" class="input-sm" />
								 </td>
								<td>{$vo.create_time}</td>
								 <td>
									 <a class="btn btn-primary" href="{:U('live/video',array('act'=>'edit','id'=>$vo['id']))}"><i class="fa fa-pencil"></i></a>
									 <a class="btn btn-danger" onclick="delfunc(this)" data-url="{:U('live/videoHandle')}" data-id="{$vo.id}"><i class="fa fa-trash-o"></i></a>
								 </td>
		                   </tr>
		                  </foreach>
		                   </tbody>
		                 <tfoot>
		                 
		                 </tfoot>
		               </table>
	               </div>
	          </div>
              <div class="row">
              	    <div class="col-sm-6 text-left">
              	    	<button class="btn btn-default btn-sm checkbox-toggle"><i class="fa fa-square-o"></i></button>
              	    </div>
                    <div class="col-sm-6 text-right">{$page}</div>		
              </div>
	          </div>
	        </div>
       	</div>
       </div>
   </section>
<script>

</script>
</div>
</body>
</html>   
